package com.yc.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 测评结果实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("testResults")
public class TestResult {
    
    @TableId(value = "resultId", type = IdType.AUTO)
    private Long resultId;
    
    @TableField("recordId")
    private Long recordId;
    
    @TableField("testId")
    private Long testId;
    
    @TableField("userId")
    private Long userId;
    
    @TableField("totalScore")
    private BigDecimal totalScore;
    
    @TableField("standardScore")
    private BigDecimal standardScore;
    
    @TableField("scoreLevel")
    private String scoreLevel;
    
    @TableField("scoreDescription")
    private String scoreDescription;
    
    @TableField("dimensions")
    private String dimensions; // JSON字符串
    
    @TableField("suggestions")
    private String suggestions; // JSON字符串
    
    @TableField("actionPlan")
    private String actionPlan; // JSON字符串
    
    @TableField("isShared")
    private Integer isShared;
    
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    // 非数据库字段
    @TableField(exist = false)
    private String title; // 测评标题
    
    @TableField(exist = false)
    private List<UserTestAnswer> answerDetails; // 答题详情
} 